package com.x.Part10_super;

/**
 * ClassName: Student
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.02.28 0:06
 */
public class Student extends Person{
    String studentId;

    public Student(){
        //super();必须写在构造器的首行；也可不写，不写的话也会调用父类构造器
        super();
        System.out.println("Student()...");
    }

    @Override
    public void eat(){
        System.out.println("学生吃食堂");
    }
}
